//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core;
namespace OpenLS.Spreadsheet
{
    class TableStyleUndoUnit: IUndoUnit
    {
        private readonly Table table;
        private readonly TableStyle tableStyle;

        public TableStyleUndoUnit(Table table, TableStyle tableStyle)
        {
            this.table = table;
            this.tableStyle = tableStyle;
        }

        #region IUndoUnit Members


        public void Do()
        {
            table.Style = this.tableStyle;
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }

        #endregion
    }
}